/*
 * Resource.h
 *
 *  Created on: 18.2.2013
 *      Author: Travis
 */

#pragma once

#ifdef _WIN32 
#include <windows.h> 
#endif

#include "../LUAscripting/LuaScript.h"

namespace GameLogic
{

class Resource
{
public:
	Resource(int _wood, int gold);
	virtual ~Resource();

	void bindClass(LuaScript::LuaScript * lScript);

	// wood = wood - val
	void DecWood(int val);
	void DecGold(int val);

	int getWood() const;
	void setWood(int wood);

	int getGold() const;
	void setGold(int gold);

private:
	// wood resources
	int wood;
	int gold;
};

extern Resource *resource;

void InitResource(int Wood, int Gold);

} /* namespace gameLogic */
